package mongoMapper;

import org.springframework.data.domain.Sort;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Component;

import entity.FahaiMongoEntity;

import java.util.List;

/**
 * Created by 002465 on 2017/10/27.
 * @author 002465
 */
@Component
public interface FahaiMongoEntityMapper extends MongoRepository<FahaiMongoEntity, String> {
    List<FahaiMongoEntity> findByCaseNo(String caseNo);
    
    List<FahaiMongoEntity> findByEntryIdAndDataType(String entryId,String dataType,Sort sort);

}
